package top.software.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @ClassName: SavedFile
 * @Author: Amosen
 * @Since: 2021/4/23
 */
public class SavedFile {

	private Integer id;

	private String fileName;

	@JsonIgnore
	private String filePath;

	private String fileType;

	private long fileSize;

	private String uploader;

	private int downloadTimes;

	private int downloadAuth;

	public SavedFile() {
	}

	public SavedFile(String fileName, String filePath, String fileType, long fileSize, String uploader,
			int downloadTimes, int downloadAuth) {
		this.fileName = fileName;
		this.filePath = filePath;
		this.fileType = fileType;
		this.fileSize = fileSize;
		this.uploader = uploader;
		this.downloadTimes = downloadTimes;
		this.downloadAuth = downloadAuth;
	}

	@Override
	public String toString() {
		return "SavedFile [id=" + id + ", fileName=" + fileName + ", filePath=" + filePath + ", fileType=" + fileType
				+ ", fileSize=" + fileSize + ", uploader=" + uploader + ", downloadTimes=" + downloadTimes
				+ ", downloadAuth=" + downloadAuth + "]";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public long getFileSize() {
		return fileSize;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}

	public String getUploader() {
		return uploader;
	}

	public void setUploader(String uploader) {
		this.uploader = uploader;
	}

	public int getDownloadTimes() {
		return downloadTimes;
	}

	public void setDownloadTimes(int downloadTimes) {
		this.downloadTimes = downloadTimes;
	}

	public int getDownloadAuth() {
		return downloadAuth;
	}

	public void setDownloadAuth(int downloadAuth) {
		this.downloadAuth = downloadAuth;
	}

}
